package aidturith.ihm.action.key;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import aidturith.ihm.panel.proto.TablePanel;

public class DeleteAction extends AbstractAction {

	private static final long serialVersionUID = 1L;

	private TablePanel panel;

	public DeleteAction(TablePanel panel) {
		this.panel = panel;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if(panel.getDelete_jb().isEnabled())
			panel.deleteRow();
	}

}
